package com.handsome.utils;

import com.handsome.entity.HsWidget;
import com.handsome.service.DictionaryService;
import com.handsome.service.WidgetService;
import com.handsome.service.impl.DictionaryServiceImpl;
import com.handsome.service.impl.WidgetServiceImpl;

public class WidgetUtil {

    private static WidgetService widgetService = new WidgetServiceImpl();

    /**
     * 创建表单
     *
     * @return HsWidget
     */
    public static HsWidget generateForm(Integer id) {
        return widgetService.getFormById(id);

    }

}
